package UntilTest;

import org.junit.Test;
import com.CampusLife.until.DataTime;
import  com.CampusLife.until.RandomSMS;
import com.CampusLife. until.SendSms;

public class Random {
    @Test

    //随机生成六位数字
    public  void Test01(){
        RandomSMS randomSMS=new RandomSMS();
       int SMS= randomSMS.sendsms();
       System.out.println(System.currentTimeMillis());
       System.out.println(SMS);
    }
    @Test
    //短信验证
    public  void  test02(){
        SendSms sendSms=new SendSms();
        RandomSMS randomSMS=new RandomSMS();
       int verifyCode= randomSMS.sendsms();
        sendSms.SMSverifyCode("18591086232",verifyCode);
        System.out.println(verifyCode);
    }
    @Test
    public  void  test03(){
        DataTime dataTime=new DataTime();
      String cn=  dataTime.CNtime();
      System.out.println(cn);
    }
}
